FROM registry.cn-hangzhou.aliyuncs.com/udh/jdk:1.8.141

RUN useradd -m kafka

USER kafka

WORKDIR /home/kafka/

RUN wget http://10.110.117.99/downloads/kafkamanager/kafka-manager-2.0.0.2.tar.gz && tar -zxvf kafka-manager-2.0.0.2.tar.gz -C /home/kafka/ \
    && rm -f kafka-manager-2.0.0.2.tar.gz && mv kafka-manager-2.0.0.2 kafkamanager

ENV KAFKAMANAGER_HOME=/home/kafka/
ENV PATH=$PATH:$KAFKAMANAGER_HOME/kafkamanager/bin